<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/12/21
 * Time: 10:26
 */

namespace Cron\Controller;


use Think\Controller;
use Common\Model\AnalysisModel;

class AnalysisController extends Controller
{
    //积分统计（积分产出 和 积分消耗）
    public function pointAnalysis(){
        AnalysisModel::pointAnalysis();
    }

    //用户统计-地区分布
    public function areaDistribute(){
        AnalysisModel::analysisDistribute();
    }
    
    //用户统计-上线时间分布
    public function userOnlineTimeStatistic(){
        AnalysisModel::onlineTime();
    }
    
    //用户统计-用户分类
    public function userType(){
        AnalysisModel::userType();
    }

    //用户统计-留存分析
    public function remain(){
        AnalysisModel::remainAnalysis();
    }
    
    //流失分析-流失用户分析
    public function lostUserAnalysis(){
        AnalysisModel::lostUserAnalysis();
    }

    //流失分析0流失用户来源分析
    public function lostUserFromAnalysis(){
        AnalysisModel::lostUserFromAnalysis();
    }

    //受众分析-活动类型受众分析
    public function eventType(){
        AnalysisModel::eventTypeAnalysis();
    }

    //受众分析-文章类型受众分析
    public function articleType(){
        AnalysisModel::articleTypeAnalysis();
    }

    //受众分析-商品类型受众分析
    public function goodsType(){
        AnalysisModel::GoodsTypeAnalysis();
    }

    //报表-日报表
    public function dayReportForm(){
        AnalysisModel::dayReportForm();
    }
    //报表-周报表
    public function weekReportForm(){
        AnalysisModel::weekReportForm();
    }
    //报表-月报表
    public function monReportForm(){
        AnalysisModel::monthReportForm();
    }

    //活跃-日活跃
    public function dailyActive(){
        AnalysisModel::dailyActive();
    }
    //活跃-周活跃
    public function monthlyActive(){
        AnalysisModel::monthlyActive();
    }
}